-- GENERATED SPELL FOR [Slaag] --


function spell0_22199(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(33958,pUnit)
pUnit:RegisterEvent('Sorts_22199', 8309, 1)
end

function Sorts_22199(pUnit, Event)
local choix_sorts_22199 = math.random(0, 0)
if choix_sorts_22199 == 0 then
pUnit:RegisterEvent('spell0_22199', 1, 1)
end
end

function mob22199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22199', math.random(1500, 3000), 1)
end

function mob22199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22199, 1, 'mob22199_Action')
RegisterUnitEvent(22199, 2, 'mob22199_Leave')
RegisterUnitEvent(22199, 3, 'mob22199_Kill')
RegisterUnitEvent(22199, 4, 'mob22199_Die')
